package com.vhall.component.entity.goods.goods;

import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author guoxin.wang
 * @date 2021/10/26
 */
@Data
public class GoodsApiSetGoodsSwitchReqVO implements Serializable {

    private static final long serialVersionUID = 4523736636399174536L;

    /**
     * 房间id
     */
    @NotBlank(message = "room_id参数不允许为空！")
    @ParamName("room_id")
    private String roomId;

    /**
     * 状态：0=关闭，1=开启
     */
    @NotNull(message = "status参数不允许为空！")
    @Range(max = 1, min = 0, message = "status参数错误，仅支持0或1")
    @ParamName("status")
    private Integer status;

}
